package entity

import (
	"gorm.io/gorm"
	"time"
)

type SysMenuGroup struct {
	GroupId   uint32 `gorm:"group_id,primaryKey" form:"group_id" json:"group_id"`                     // 菜单分组ID
	GroupKey  string `gorm:"group_key,unique" form:"group_key" json:"group_key" binding:"required"`   // 分组键名
	GroupName string `gorm:"group_name"       form:"group_name" json:"group_name" binding:"required"` // 分组名称
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

func (e *SysMenuGroup) TableName() string {
	return "sys_menu_groups"
}
